﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Simple.HttpServer {
    public abstract class ResourceProvider {

        protected ResourceProviderContext Context { get; set; }

        public virtual void Initialize(ResourceProviderContext context) {
            Context = context;
        }

        public abstract ResourceData GetResource(Uri uri);
        public abstract ResourceData GetExceptionResource(Exception ex);
    }
}
